-- GENERATED SPELL FOR [Merok Longstride] --


function spell0_15613(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(15616,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15613', 12000, 1)
end

function spell1_15613(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(15982,pUnit)
pUnit:RegisterEvent('Sorts_15613', 3000, 1)
end

function spell2_15613(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(15507,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15613', 0, 1)
end

function Sorts_15613(pUnit, Event)
local choix_sorts_15613 = math.random(0, 2)
if choix_sorts_15613 == 0 then
pUnit:RegisterEvent('spell0_15613', 1, 1)
end
if choix_sorts_15613 == 1 then
pUnit:RegisterEvent('spell1_15613', 1, 1)
end
if choix_sorts_15613 == 2 then
pUnit:RegisterEvent('spell2_15613', 1, 1)
end
end

function mob15613_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15613', math.random(1500, 3000), 1)
end

function mob15613_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15613_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15613_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15613, 1, 'mob15613_Action')
RegisterUnitEvent(15613, 2, 'mob15613_Leave')
RegisterUnitEvent(15613, 3, 'mob15613_Kill')
RegisterUnitEvent(15613, 4, 'mob15613_Die')
